package cn.ryh.listener.interfaceiml;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

/**
 * @ClassName InterfaceSessionListener
 * @Description 通过APP启动类实现ServletContextInitializer接口，重写其onStartup()注册Listener,
*               实现HttpSessionListener接口，监听Session的创建与销毁
 * @Author RaoYH
 */
public class InterfaceSessionListener implements HttpSessionListener {
    @Override
    public void sessionCreated(HttpSessionEvent se) {

        System.out.println("InterfaceSessionListener 初始化");
    }

    @Override
    public void sessionDestroyed(HttpSessionEvent se) {

        System.out.println("InterfaceSessionListener 销毁");
    }
}
